package com.javaee.mapper.admin;

import com.javaee.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    void insert(Department department);
    void deleteById(Integer id);
    void update(Department department);
    Department findById(Integer id);
    List<Department> findAll(@Param("startIndex") int pageNum, @Param("perPageSize")int pageSize);
    //通过科室名称查找
    List<Department> findByName(String dName);
    int findIdByName(String dName);
    int selectCount();
}